import { http } from '@/apis/http'

export const register = (data: { username: string; password: string; password2: string }) => {
  return http({
    url: '/user/register',
    method: 'post',
    data
  })
}
export const login = (data: { username: string; password: string }) => {
  return http({
    url: '/user/login',
    method: 'post',
    data
  })
}